`
https://leetcode.cn/problems/two-sum-ii-input-array-is-sorted/
`

/**
 * @param {number[]} numbers
 * @param {number} target
 * @return {number[]}
 */
var twoSum = function (numbers, target) {
  if (numbers.length === 2) return [1, 2]
  let left = 0
  let right = numbers.length - 1
  while (numbers[left] + numbers[right] !== target) {
    if (numbers[left] + numbers[right] > target) {
      right--
    } else {
      left++
    }
  }
  return [left + 1, right + 1]
};